{% extends "base.html" %}
{% block title %}
    添加用户
{% endblock %}
{% block logo %}

        <span href="" class="dropdown-toggle"><i class="fa fa-user"></i>  {{ user.username }}
            <ul class="dropdown-menu">
                {% if user.is_staff %}
                <li><a href="/psw-modify/">修改密码</a></li>
                <li><a href="/user-list/">用户管理</a></li>
                {% else %}
                    <li><a href="/psw-modify/">修改密码</a></li>
                {% endif %}
            </ul>
        </span> | <a href="/logout/">退出</a>
        <script type="text/javascript">
            $(function(){
                $(".dropdown-toggle").hover(function(){
                    $(".dropdown-menu").toggle();
                })
            })
        </script>

{% endblock %}
{% block content %}
                <div class="data-detail">
                    <form action="/add_user_submit/" method="post" enctype="multipart/form-data">
                        {{ info }}
                        <ul class="ad-ul">
                            <li class="clearfix">
                                <label>用户名 : </label>
                                <div><input name="username" id="tec_name" type="text"><span class="ml10 red f12"></span></div>
                            </li>
                            <li class="clearfix">
                                <label>密码 : </label>
                                <div><input name="password" id="password" type="text"><span class="ml10 red f12"></span></div>
                            </li>
                            <li class="clearfix">
                                <label>确认密码 : </label>
                                <div><input name="repassword" id="confirmPsw" type="text"><span class="ml10 red f12"></span></div>
                            </li>
{#                            <li class="clearfix">#}
{#                                <label>权限 : </label>#}
{#                                <div>#}
{#                                    <select name="tec_type" class="mr30">#}
{#                                        <option>--请选择--</option>#}
{#                                        <option>0</option>#}
{#                                        <option>1</option>#}
{#                                    </select>#}
{#                                </div>#}
{#                            </li>#}
                        </ul>
                        <div class="submit-btn"><input id="submint_btn" type="submit" value="提 交"></div>
                    </form>
                </div>
                <script type="text/javascript">
                    $(function(){

                    })
                </script>
{% endblock %}
